package com.rightsidetech.system.dtos.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class SysRuleStatusReq implements Serializable {

    @ApiModelProperty(required = true)
    @NotNull(message = "id不可为空")
    private Long id;

    @ApiModelProperty(value = "规则状态 0-开启 1-关闭",required = true)
    @NotNull(message = "规则状态不可为空")
    @Range(min = 0,max = 1,message = "规则状态不正确")
    private Byte ruleStatus;
}
